
camera
   look-at (0.0 1.0 0.0)
   drop-line (0 -1 0)
   origin (-5 5 -8)
   depth 0.56
   x-size 0.64
   y-size 0.48
   filter standard
;

image
   xsize 640
   ysize 480
;

object
   primative plane
      position (-1000 0 -1000)
      normal (0 1 0)
      x-axis (1 0 0)
      y-axis (0 0 1)
   ;
   material
      colour (.3 .3 .3)
   ;
;

define
   material
      named die-pips
      colour (0 0 0)
      spec-colour (1 1 1)
      diffuse-reflection 0.0
      specular-reflection 0.8
      reflection 0.0
   ;
   object
      name pips
      object sphere centre (0 0 -1.2) radius 0.25 ; material called die-pips ; ;

      object sphere centre (0.4 -0.4 1.2) radius 0.25 ; material called die-pips ; ;
      object sphere centre (0.4  0.0 1.2) radius 0.25 ; material called die-pips ; ;
      object sphere centre (0.4  0.4 1.2) radius 0.25 ; material called die-pips ; ;
      object sphere centre (-.4 -0.4 1.2) radius 0.25 ; material called die-pips ; ;
      object sphere centre (-.4  0.0 1.2) radius 0.25 ; material called die-pips ; ;
      object sphere centre (-.4  0.4 1.2) radius 0.25 ; material called die-pips ; ;

      object sphere centre (1.2 -0.4  0.4) radius 0.25 ; material called die-pips ; ;
      object sphere centre (1.2  0.4 -0.4) radius 0.25 ; material called die-pips ; ;

      object sphere centre (-1.2 -0.4  0.4 ) radius 0.25 ; material called die-pips ; ;
      object sphere centre (-1.2  0.0  0.0 ) radius 0.25 ; material called die-pips ; ;
      object sphere centre (-1.2  0.4  0.4 ) radius 0.25 ; material called die-pips ; ;
      object sphere centre (-1.2 -0.4 -0.4 ) radius 0.25 ; material called die-pips ; ;
      object sphere centre (-1.2  0.4 -0.4 ) radius 0.25 ; material called die-pips ; ;

      object sphere centre (-0.4 -1.2  0.4 ) radius 0.25 ; material called die-pips ; ;
      object sphere centre ( 0.4 -1.2  0.4 ) radius 0.25 ; material called die-pips ; ;
      object sphere centre (-0.4 -1.2 -0.4 ) radius 0.25 ; material called die-pips ; ;
      object sphere centre ( 0.4 -1.2 -0.4 ) radius 0.25 ; material called die-pips ; ;

      object sphere centre (-0.4 1.2  0.4 ) radius 0.25 ; material called die-pips ; ;
      object sphere centre ( 0.0 1.2  0.0 ) radius 0.25 ; material called die-pips ; ;
      object sphere centre ( 0.4 1.2 -0.4 ) radius 0.25 ; material called die-pips ; ;
   ;
   object
      name die
      object
         csg
            subtract
            operand1
               csg
                  intersect
                  operand1
                     sphere
                        centre (0 0 0)
                        radius 1.414
                     ;
                     material
                        named die-stuff
                        colour (0.8 0.8 0.8)
                        diffuse-reflection 0.1
                        specular-reflection 0.3
                        specular-power 100
                        reflection 0.4
                     ;
                  ;
                  operand2
                     box
                        a (-1 -1 -1)
                        b ( 1 1  1)
                     ;
                     material
                        called die-stuff
                     ;
                  ;
               ;
            ;
            operand2
               pips
                  at (0 0 0)
               ;
            ;
         ;
      ;
   ;
;

object
   die
      at (3 1 0)
   ;
;

object
   die
      at (-3 1 0)
      x-rotate 180
   ;
;


light
   colour (1 1 1)
   position (-300 1000 -400)
;
